package se.webbzon.boltzmann.game.object.action;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.boltzmann.environment.EnvironmentInflator;
import se.webbzon.oschi01.worldeditor.WorldObjectDeflation;
import se.webbzon.oschi01.worldobject.WorldObject;

public class ShopActionInflator extends EnvironmentInflator {
	
	/*============================================================
	Public Methods
	============================================================*/

	/** Creates a new sequence action inflator. **/
	public ShopActionInflator(AbstractEnvironment env) {
		super(env, ShopAction.worldObjectName);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public WorldObject makeWorldObject(WorldObjectDeflation deflation) {
		ShopActionDeflation sad = ((ShopActionDeflation) deflation);
		return sad.makeSequenceAction(getEnvironment());
	}

	@Override public WorldObjectDeflation makeDeflation(int deflationProperties, WorldObject[] dependencies) {
		return new ShopActionDeflation(deflationProperties,dependencies);
	}

}
